﻿using AutoMapper;
using B.S.Meeting.Domain;
using B.S.Meeting.ReadAPI.Applications.Commands.Roles;
using B.S.Meeting.ReadAPI.Dtos;

namespace B.S.Meeting.ReadAPI
{
    public class MappingProfiles: Profile
    {
        public MappingProfiles() 
        {
            CreateMap<User, UserDto>().ReverseMap();
            CreateMap<MeetingRoom, RoomDto>().ReverseMap();
            CreateMap<Role, RoleDto>().ReverseMap();
            CreateMap<Dept, DeptDto>().ReverseMap();
            CreateMap<MeetingReservation, ReservationDto>().ReverseMap();
            CreateMap<ApproveReservation, ApproveDto>().ReverseMap();
        }
    }
}
